/*
  This is the server entry point.  The server will listen on a
  given port and the client will connect to it and then the server
  receives the file the client is told to transfer
 */

#include "srv_net.h"

/*
  This program will take in the port number to listen on 
  as a command line argument
 */
int main(int argc, char **argv)
{
 
  //if wrong number of command line arguments, print error and exit
  if(argc < 2)
    {
      printf("Usage: srv port_number_to_listen_on\n");
      exit(1);
    }

  receiveFile(atoi(argv[1]));

  
 
  return 0;
}
